﻿
<?php
include ("../connect.php");
if(isset($_POST['ms_quyen']))
{
	$ms_quyen = $_POST['ms_quyen'];
	$arr=explode(',',$ms_quyen);
	for($i = 0;$i < count($arr);$i++)
	{
		$ms_quyen_i=$arr[$i];
		$sql="DELETE FROM quyen WHERE MS_QUYEN='$ms_quyen_i'";
		$rs=mysql_query($sql);
	}
	if($rs)
	{
	   echo "<script>
			alert ('Đã xóa dữ liệu thành công...');
			location.href='../index.php?noidung=dsq';
			</script>";
	}
}

?>
